﻿#region 命名空间

using System.Collections.Specialized;
using System.Web;
using System.Web.Services;
using WinnerCMS.BLL.Counter;

#endregion

namespace WinnerCMS.WebUI.Counter
{
    /// <summary>
    ///     $codebehindclassname$ 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/"), WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class Counter : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            // 在此处放置用户代码以初始化页面
            //网页立即超时，防止漏统计
            context.Response.Expires = 0;
            context.Response.CacheControl = "no-cache";

            CounterManage.TongJi(context);

            //http://localhost:86/counter/Counter.aspx?style=icon&referer=&screenwidth=1440&screenheight=900
        }

        public bool IsReusable
        {
            get { return false; }
        }
    }
}